import React, { Fragment } from 'react';
import { connect } from 'dva';
import BasePage from './BasePage'
import { Breadcrumb, Row, Col, Button, Input, Space, Descriptions, Image } from 'antd';
import { Router, Route, Switch, routerRedux } from 'dva/router';
import CurrentLocation from '../components/currentLocation'
import breadArr from '../constant/breadArr'
import style from '../assets/less/verificationLess.less'
import flowpath from '../assets/imgs/flowpath.jpg'
class VerificationPage extends React.Component {
    constructor(props) {
        super(props)
    }
    //对平台内管理员发布的文件进行检索的功能；
    onSearchDoc = value => {
        this.props.dispatch(routerRedux.push({
            pathname: '/search',
            query: { value: value }
        }))
    }

    //搜索文档及联系我们
    searchContactDiv = () => {
        const { Search } = Input;
    }

    replaceToInformation = () => {
        this.props.dispatch({
            type: 'app/appMenuReplacePage',
            data: "/information"
        })
    }


    render() {
        return (
            <BasePage>
                <Row>
                    <Col span={14}  >
                        <CurrentLocation breadArr={breadArr.VeritificationPage}></CurrentLocation>
                    </Col>
                    <Col span={10}  >
                        {this.searchContactDiv()}
                    </Col>
                </Row>
                <Image width={1080} height={680} src={flowpath} preview={false}></Image>
                <Button type="primary" style={{width:1080}} block onClick={this.replaceToInformation}> 了解更多信息请下载《固废资源化技术验证规范》</Button>
            </BasePage>
        )
    }
}

export default connect()(VerificationPage)